function checkform(v){
	var vauel=$("#value").val();
	if(vauel==""){
		alert(v+"不能为空");
		return false;
	}
	var explanation=$("#explanation").val();
	if(explanation==""){
		alert(v+"说明不能为空");
		return false;
	}
	return true;
}

function edit_customer_source(id){
	$.post("/customer_source/edit_ajax/"+id,{
		customer_source_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_customer_source_submit(id){
	$.post("/customer_source/edit_submit_ajax/"+id,{
		customer_source_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_customer_source(id){
	$.post("/customer_source/cancel_edit_ajax/"+id,{
		customer_source_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_customer_type(id){
	$.post("/customer_type/edit_ajax/"+id,{
		customer_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_customer_type_submit(id){
	$.post("/customer_type/edit_submit_ajax/"+id,{
		customer_type_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_customer_type(id){
	$.post("/customer_type/cancel_edit_ajax/"+id,{
		customer_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_building_exterior(id){
	$.post("/building_exterior/edit_ajax/"+id,{
		building_exterior_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_building_exterior_submit(id){
	$.post("/building_exterior/edit_submit_ajax/"+id,{
		building_exterior_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_building_exterior(id){
	$.post("/building_exterior/cancel_edit_ajax/"+id,{
		building_exterior_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_mrt_line(id){
	$.post("/mrt_line/edit_ajax/"+id,{
		mrt_line_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_mrt_line_submit(id){
	$.post("/mrt_line/edit_submit_ajax/"+id,{
		mrt_line_id:id,
		value:$("#value").val(),
		code:$("#code").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_mrt_line(id){
	$.post("/mrt_line/cancel_edit_ajax/"+id,{
		mrt_line_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_building_attachment_data(id){
	$.post("/building_attachment_data/edit_ajax/"+id,{
		building_attachment_data_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_building_attachment_data_submit(id){
	$.post("/building_attachment_data/edit_submit_ajax/"+id,{
		building_attachment_data_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_building_attachment_data(id){
	$.post("/building_attachment_data/cancel_edit_ajax/"+id,{
		building_attachment_data_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_postulate(id){
	$.post("/postulate/edit_ajax/"+id,{
		postulate_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_postulate_submit(id){
	$.post("/postulate/edit_submit_ajax/"+id,{
		postulate_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_postulate(id){
	$.post("/postulate/cancel_edit_ajax/"+id,{
		postulate_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_title(id){
	$.post("/title/edit_ajax/"+id,{
		title_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_title_submit(id){
	$.post("/title/edit_submit_ajax/"+id,{
		title_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_title(id){
	$.post("/title/cancel_edit_ajax/"+id,{
		title_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_windows(id){
	$.post("/windows/edit_ajax/"+id,{
		windows_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_windows_submit(id){
	$.post("/windows/edit_submit_ajax/"+id,{
		windows_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_windows(id){
	$.post("/windows/cancel_edit_ajax/"+id,{
		windows_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_payer(id){
	$.post("/payer/edit_ajax/"+id,{
		payer_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_payer_submit(id){
	$.post("/payer/edit_submit_ajax/"+id,{
		payer_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_payer(id){
	$.post("/payer/cancel_edit_ajax/"+id,{
		payer_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_nationality(id){
	$.post("/nationality/edit_ajax/"+id,{
		nationality_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_nationality_submit(id){
	$.post("/nationality/edit_submit_ajax/"+id,{
		nationality_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_nationality(id){
	$.post("/nationality/cancel_edit_ajax/"+id,{
		nationality_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_land_use_zoning(id){
	$.post("/land_use_zoning/edit_ajax/"+id,{
		land_use_zoning_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_land_use_zoning_submit(id){
	$.post("/land_use_zoning/edit_submit_ajax/"+id,{
		land_use_zoning_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_land_use_zoning(id){
	$.post("/land_use_zoning/cancel_edit_ajax/"+id,{
		land_use_zoning_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_look_mode(id){
	$.post("/look_mode/edit_ajax/"+id,{
		look_mode_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_look_mode_submit(id){
	$.post("/look_mode/edit_submit_ajax/"+id,{
		look_mode_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_look_mode(id){
	$.post("/look_mode/cancel_edit_ajax/"+id,{
		look_mode_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_mrt(id){
	$.post("/mrt/edit_ajax/"+id,{
		mrt_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_mrt_submit(id){
	$.post("/mrt/edit_submit_ajax/"+id,{
		mrt_id:id,
		value:$("#value").val(),
		code:$("#code").val(),
		explanation:$("#explanation").val(),
		mrt_line_id:$("#mrt_line_id").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_mrt(id){
	$.post("/mrt/cancel_edit_ajax/"+id,{
		mrt_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_type(id){
	$.post("/object_type/edit_ajax/"+id,{
		object_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_type_submit(id){
	$.post("/object_type/edit_submit_ajax/"+id,{
		object_type_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_object_type(id){
	$.post("/object_type/cancel_edit_ajax/"+id,{
		object_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_environmental_features(id){
	$.post("/environmental_features/edit_ajax/"+id,{
		environmental_features_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_environmental_features_submit(id){
	$.post("/environmental_features/edit_submit_ajax/"+id,{
		environmental_features_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_environmental_features(id){
	$.post("/environmental_features/cancel_edit_ajax/"+id,{
		environmental_features_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_type_of_company(id){
	$.post("/type_of_company/edit_ajax/"+id,{
		type_of_company_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_type_of_company_submit(id){
	$.post("/type_of_company/edit_submit_ajax/"+id,{
		type_of_company_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_type_of_company(id){
	$.post("/type_of_company/cancel_edit_ajax/"+id,{
		type_of_company_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_use_status(id){
	$.post("/use_status/edit_ajax/"+id,{
		use_status_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_use_status_submit(id){
	$.post("/use_status/edit_submit_ajax/"+id,{
		use_status_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_use_status(id){
	$.post("/use_status/cancel_edit_ajax/"+id,{
		use_status_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_required_level(id){
	$.post("/required_level/edit_ajax/"+id,{
		required_level_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_required_level_submit(id){
	$.post("/required_level/edit_submit_ajax/"+id,{
		required_level_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_required_level(id){
	$.post("/required_level/cancel_edit_ajax/"+id,{
		required_level_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_contact_usual_holiday(id){
	$.post("/contact_usual_holiday/edit_ajax/"+id,{
		contact_usual_holiday_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_contact_usual_holiday_submit(id){
	$.post("/contact_usual_holiday/edit_submit_ajax/"+id,{
		contact_usual_holiday_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_contact_usual_holiday(id){
	$.post("/contact_usual_holiday/cancel_edit_ajax/"+id,{
		contact_usual_holiday_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_management(id){
	$.post("/management/edit_ajax/"+id,{
		management_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_management_submit(id){
	$.post("/management/edit_submit_ajax/"+id,{
		management_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_management(id){
	$.post("/management/cancel_edit_ajax/"+id,{
		management_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_currency(id){
	$.post("/currency/edit_ajax/"+id,{
		currency_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_currency_submit(id){
	$.post("/currency/edit_submit_ajax/"+id,{
		currency_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_currency(id){
	$.post("/currency/cancel_edit_ajax/"+id,{
		currency_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}



function edit_park(id){
	$.post("/park/edit_ajax/"+id,{
		park_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_park_submit(id){
	$.post("/park/edit_submit_ajax/"+id,{
		park_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_park(id){
	$.post("/park/cancel_edit_ajax/"+id,{
		park_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_area(id){
	$.post("/area/edit_ajax/"+id,{
		area_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_area_submit(id){
	$.post("/area/edit_submit_ajax/"+id,{
		area_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_area(id){
	$.post("/area/cancel_edit_ajax/"+id,{
		area_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_object_features(id){
	$.post("/object_features/edit_ajax/"+id,{
		object_features_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_features_submit(id){
	$.post("/object_features/edit_submit_ajax/"+id,{
		object_features_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_object_features(id){
	$.post("/object_features/cancel_edit_ajax/"+id,{
		object_features_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_main_building(id){
	$.post("/main_building/edit_ajax/"+id,{
		main_building_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_main_building_submit(id){
	$.post("/main_building/edit_submit_ajax/"+id,{
		main_building_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_main_building(id){
	$.post("/main_building/cancel_edit_ajax/"+id,{
		main_building_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_state(id){
	$.post("/object_state/edit_ajax/"+id,{
		object_state_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_state_submit(id){
	$.post("/object_state/edit_submit_ajax/"+id,{
		object_state_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_object_state(id){
	$.post("/object_state/cancel_edit_ajax/"+id,{
		object_state_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_importance_of_customers(id){
	$.post("/importance_of_customers/edit_ajax/"+id,{
		importance_of_customers_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_importance_of_customers_submit(id){
	$.post("/importance_of_customers/edit_submit_ajax/"+id,{
		importance_of_customers_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_importance_of_customers(id){
	$.post("/importance_of_customers/cancel_edit_ajax/"+id,{
		importance_of_customers_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_affiliated_with(id){
	$.post("/affiliated_with/edit_ajax/"+id,{
		affiliated_with_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_affiliated_with_submit(id){
	$.post("/affiliated_with/edit_submit_ajax/"+id,{
		affiliated_with_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_affiliated_with(id){
	$.post("/affiliated_with/cancel_edit_ajax/"+id,{
		affiliated_with_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_area_unit(id){
	$.post("/area_unit/edit_ajax/"+id,{
		area_unit_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_area_unit_submit(id){
	$.post("/area_unit/edit_submit_ajax/"+id,{
		area_unit_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_area_unit(id){
	$.post("/area_unit/cancel_edit_ajax/"+id,{
		area_unit_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}



function edit_school(id){
	$.post("/school/edit_ajax/"+id,{
		school_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_school_submit(id){
	$.post("/school/edit_submit_ajax/"+id,{
		school_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_school(id){
	$.post("/school/cancel_edit_ajax/"+id,{
		school_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_job_project_type(id){
	$.post("/job_project_type/edit_ajax/"+id,{
		job_project_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_job_project_type_submit(id){
	$.post("/job_project_type/edit_submit_ajax/"+id,{
		job_project_type_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_job_project_type(id){
	$.post("/job_project_type/cancel_edit_ajax/"+id,{
		job_project_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_fire_and_security(id){
	$.post("/fire_and_security/edit_ajax/"+id,{
		fire_and_security_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_fire_and_security_submit(id){
	$.post("/fire_and_security/edit_submit_ajax/"+id,{
		fire_and_security_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_fire_and_security(id){
	$.post("/fire_and_security/cancel_edit_ajax/"+id,{
		fire_and_security_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_usage(id){
	$.post("/object_usage/edit_ajax/"+id,{
		object_usage_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_usage_submit(id){
	$.post("/object_usage/edit_submit_ajax/"+id,{
		object_usage_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_object_usage(id){
	$.post("/object_usage/cancel_edit_ajax/"+id,{
		object_usage_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_parking_type(id){
	$.post("/parking_type/edit_ajax/"+id,{
		parking_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_parking_type_submit(id){
	$.post("/parking_type/edit_submit_ajax/"+id,{
		parking_type_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_parking_type(id){
	$.post("/parking_type/cancel_edit_ajax/"+id,{
		parking_type_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_house_building(id){
	$.post("/house_building/edit_ajax/"+id,{
		house_building_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_house_building_submit(id){
	$.post("/house_building/edit_submit_ajax/"+id,{
		house_building_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_house_building(id){
	$.post("/house_building/cancel_edit_ajax/"+id,{
		house_building_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_customer_appellation(id){
	$.post("/customer_appellation/edit_ajax/"+id,{
		customer_appellation_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_customer_appellation_submit(id){
	$.post("/customer_appellation/edit_submit_ajax/"+id,{
		customer_appellation_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_customer_appellation(id){
	$.post("/customer_appellation/cancel_edit_ajax/"+id,{
		customer_appellation_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_indoor_pattern(id){
	$.post("/indoor_pattern/edit_ajax/"+id,{
		indoor_pattern_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_indoor_pattern_submit(id){
	$.post("/indoor_pattern/edit_submit_ajax/"+id,{
		indoor_pattern_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_indoor_pattern(id){
	$.post("/indoor_pattern/cancel_edit_ajax/"+id,{
		indoor_pattern_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_public_facilities(id){
	$.post("/Ddblic_facilities/edit_ajax/"+id,{
		public_facilities_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_public_facilities_submit(id){
	$.post("/Ddblic_facilities/edit_submit_ajax/"+id,{
		public_facilities_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_public_facilities(id){
	$.post("/Ddblic_facilities/cancel_edit_ajax/"+id,{
		public_facilities_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_circle(id){
	$.post("/circle/edit_ajax/"+id,{
		circle_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_circle_submit(id){
	$.post("/circle/edit_submit_ajax/"+id,{
		circle_id:id,
		city:$("#city").val(),
		area:$("#area").val(),
		value:$("#value").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_circle(id){
	$.post("/circle/cancel_edit_ajax/"+id,{
		circle_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_contract_name(id){
	$.post("/contract_name/edit_ajax/"+id,{
		contract_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_contract_name_submit(id){
	$.post("/contract_name/edit_submit_ajax/"+id,{
		contract_name_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_contract_name(id){
	$.post("/contract_name/cancel_edit_ajax/"+id,{
		contract_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_base_is_located(id){
	$.post("/base_is_located/edit_ajax/"+id,{
		base_is_located_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_base_is_located_submit(id){
	$.post("/base_is_located/edit_submit_ajax/"+id,{
		base_is_located_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_base_is_located(id){
	$.post("/base_is_located/cancel_edit_ajax/"+id,{
		base_is_located_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_payment_method(id){
	$.post("/payment_method/edit_ajax/"+id,{
		payment_method_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_payment_method_submit(id){
	$.post("/payment_method/edit_submit_ajax/"+id,{
		payment_method_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_payment_method(id){
	$.post("/payment_method/cancel_edit_ajax/"+id,{
		payment_method_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_object_styles(id){
	$.post("/object_styles/edit_ajax/"+id,{
		object_styles_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_object_styles_submit(id){
	$.post("/object_styles/edit_submit_ajax/"+id,{
		object_styles_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_object_styles(id){
	$.post("/object_styles/cancel_edit_ajax/"+id,{
		object_styles_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_partition_the(id){
	$.post("/partition_the/edit_ajax/"+id,{
		partition_the_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_partition_the_submit(id){
	$.post("/partition_the/edit_submit_ajax/"+id,{
		partition_the_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_partition_the(id){
	$.post("/partition_the/cancel_edit_ajax/"+id,{
		partition_the_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_case_name(id){
	$.post("/case_name/edit_ajax/"+id,{
		case_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_case_name_submit(id){
	$.post("/case_name/edit_submit_ajax/"+id,{
		case_name_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_case_name(id){
	$.post("/case_name/cancel_edit_ajax/"+id,{
		case_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}



function edit_emphasis_area(id){
	$.post("/emphasis_area/edit_ajax/"+id,{
		emphasis_area_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_emphasis_area_submit(id){
	$.post("/emphasis_area/edit_submit_ajax/"+id,{
		emphasis_area_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_emphasis_area(id){
	$.post("/emphasis_area/cancel_edit_ajax/"+id,{
		emphasis_area_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}



function edit_appraisal_agencies(id){
	$.post("/appraisal_agencies/edit_ajax/"+id,{
		appraisal_agencies_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function edit_appraisal_agencies_submit(id){
	$.post("/appraisal_agencies/edit_submit_ajax/"+id,{
		appraisal_agencies_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_appraisal_agencies(id){
	$.post("/appraisal_agencies/cancel_edit_ajax/"+id,{
		appraisal_agencies_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}



function edit_building_name(id){
	
	$.post("/base/building_name/edit_ajax/"+id,{
		building_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}

function cancel_edit_building_name(id){
	$.post("/base/building_name/cancel_edit_ajax/"+id,{
		building_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function edit_building_name_submit(id){
	
	$.post("/base/building_name/edit_submit_ajax/"+id,{
		building_name_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}






function edit_object_name(id){
	
	$.post("/base/object_name/edit_ajax/"+id,{
		object_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}



function edit_object_name_submit(id){
	
	$.post("/base/object_name/edit_submit_ajax/"+id,{
		object_name_id:id,
		value:$("#value").val(),
		explanation:$("#explanation").val(),
		sequence:$("#sequence").val()
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}


function cancel_edit_object_name(id){
	$.post("/base/object_name/cancel_edit_ajax/"+id,{
		object_name_id:id
	},
	function(result){    
		if(result){    
			$("#t_"+id).html(result);
		}else{
			alert("出錯");
		}
	}); 
}
